package com.youzhi.backend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.FieldNameConstants;

/**
 * <p>
 * 系统菜单表
 * </p>
 *
 * @author xumeng
 * @since 2022-12-02
 */
@Data
@FieldNameConstants
@ApiModel(value = "Menu对象", description = "系统菜单表")
public class Menu implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("菜单名称")
    private String name;

    @ApiModelProperty("类型: 1目录 2页面")
    private Integer type;

    @ApiModelProperty("菜单url")
    private String url;

    @ApiModelProperty("父节点id")
    private Long parentId;

    @ApiModelProperty("权限code")
    private String privilegeCode;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("更新时间")
    private Date updateTime;

}
